import type { RouteRecordRaw } from 'vue-router';

const dashboardRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/index',
    name: 'DashboardRoot',
    meta: {
      hidden: true,
    },
  },
  {
    path: '/index',
    name: 'DashboardIndex',
    component: () => import('@/views/base/index.vue'),
    meta: {
      title: '仪表盘首页',
      icon: 'dashboard',
    },
  },
  {
    path: '/detail',
    name: 'DashboardDetail',
    component: () => import('@/views/detail/index.vue'),
    meta: {
      title: '仪表盘详情',
      icon: 'dashboard',
    },
  },
];

export default dashboardRoutes;
